# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'questionWidgetGui.ui'
#
# Created: Sat Dec 26 15:14:17 2009
#      by: PyQt4 UI code generator 4.6.2
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_questionWidget(object):
    def setupUi(self, questionWidget):
        questionWidget.setObjectName("questionWidget")
        questionWidget.resize(588, 317)
        self.verticalLayout = QtGui.QVBoxLayout(questionWidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtGui.QLabel(questionWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 2)
        self.label_2 = QtGui.QLabel(questionWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 0, 2, 1, 1)
        self.question = QtGui.QTextEdit(questionWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.question.sizePolicy().hasHeightForWidth())
        self.question.setSizePolicy(sizePolicy)
        self.question.setTabChangesFocus(True)
        self.question.setObjectName("question")
        self.gridLayout.addWidget(self.question, 1, 0, 2, 2)
        self.questionTitle = QtGui.QLineEdit(questionWidget)
        self.questionTitle.setObjectName("questionTitle")
        self.gridLayout.addWidget(self.questionTitle, 1, 2, 1, 1)
        spacerItem = QtGui.QSpacerItem(20, 108, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 2, 2, 2, 1)
        self.addAnswerButton = QtGui.QPushButton(questionWidget)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icons/addAnswerIcon"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.addAnswerButton.setIcon(icon)
        self.addAnswerButton.setObjectName("addAnswerButton")
        self.gridLayout.addWidget(self.addAnswerButton, 3, 0, 1, 1)
        self.questionPreviewButton = QtGui.QPushButton(questionWidget)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/icons/questionPrevIcon"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.questionPreviewButton.setIcon(icon1)
        self.questionPreviewButton.setObjectName("questionPreviewButton")
        self.gridLayout.addWidget(self.questionPreviewButton, 3, 1, 1, 1)
        self.answersWidget = QtGui.QGroupBox(questionWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.answersWidget.sizePolicy().hasHeightForWidth())
        self.answersWidget.setSizePolicy(sizePolicy)
        self.answersWidget.setFlat(False)
        self.answersWidget.setCheckable(False)
        self.answersWidget.setObjectName("answersWidget")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.answersWidget)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.answersLayout = QtGui.QGridLayout()
        self.answersLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.answersLayout.setObjectName("answersLayout")
        self.verticalLayout_2.addLayout(self.answersLayout)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem1)
        self.gridLayout.addWidget(self.answersWidget, 4, 0, 1, 3)
        self.verticalLayout.addLayout(self.gridLayout)

        self.retranslateUi(questionWidget)
        QtCore.QObject.connect(self.addAnswerButton, QtCore.SIGNAL("clicked()"), questionWidget.addAnswer)
        QtCore.QObject.connect(self.questionPreviewButton, QtCore.SIGNAL("clicked()"), questionWidget.questionPreview)
        QtCore.QMetaObject.connectSlotsByName(questionWidget)
        questionWidget.setTabOrder(self.question, self.questionTitle)
        questionWidget.setTabOrder(self.questionTitle, self.addAnswerButton)
        questionWidget.setTabOrder(self.addAnswerButton, self.questionPreviewButton)

    def retranslateUi(self, questionWidget):
        questionWidget.setWindowTitle(QtGui.QApplication.translate("questionWidget", "Question", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("questionWidget", "Question Text", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("questionWidget", "Question Title", None, QtGui.QApplication.UnicodeUTF8))
        self.addAnswerButton.setText(QtGui.QApplication.translate("questionWidget", "&Add answer", None, QtGui.QApplication.UnicodeUTF8))
        self.questionPreviewButton.setToolTip(QtGui.QApplication.translate("questionWidget", "Preview of question in GIFT format.", None, QtGui.QApplication.UnicodeUTF8))
        self.questionPreviewButton.setText(QtGui.QApplication.translate("questionWidget", "&Question preview", None, QtGui.QApplication.UnicodeUTF8))
        self.answersWidget.setTitle(QtGui.QApplication.translate("questionWidget", "Answers", None, QtGui.QApplication.UnicodeUTF8))

import data_rc
